package com.lzw.DailyAudit.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.hooya.fa.eu.biz.DailyAudit.entity.dto.StoreCorpDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzw
 * @since 2025-09-11
 */
@Mapper
public interface DailyMetaStoreMapper {

	@DS("fa_eu")
    @Select("SELECT DISTINCT store, SUBSTRING_INDEX(LOWER(corp), '-', 1) as corp FROM meta_store WHERE corp <> ''")
	List<StoreCorpDTO> getStoreAndCorp();


}
